package com.ruoyi.system.audition.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.audition.mapper.ApprovalRecordsMapper;
import com.ruoyi.system.audition.domain.ApprovalRecords;
import com.ruoyi.system.audition.service.IApprovalRecordsService;

/**
 * 审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-26
 */
@Service
public class ApprovalRecordsServiceImpl implements IApprovalRecordsService 
{
    @Autowired
    private ApprovalRecordsMapper approvalRecordsMapper;

    /**
     * 查询审核
     * 
     * @param recordId 审核主键
     * @return 审核
     */
    @Override
    public ApprovalRecords selectApprovalRecordsByRecordId(Long recordId)
    {
        return approvalRecordsMapper.selectApprovalRecordsByRecordId(recordId);
    }

    /**
     * 查询审核列表
     * 
     * @param approvalRecords 审核
     * @return 审核
     */
    @Override
    public List<ApprovalRecords> selectApprovalRecordsList(ApprovalRecords approvalRecords)
    {
        return approvalRecordsMapper.selectApprovalRecordsList(approvalRecords);
    }

    /**
     * 新增审核
     * 
     * @param approvalRecords 审核
     * @return 结果
     */
    @Override
    public int insertApprovalRecords(ApprovalRecords approvalRecords)
    {
        return approvalRecordsMapper.insertApprovalRecords(approvalRecords);
    }

    /**
     * 修改审核
     * 
     * @param approvalRecords 审核
     * @return 结果
     */
    @Override
    public int updateApprovalRecords(ApprovalRecords approvalRecords)
    {
        return approvalRecordsMapper.updateApprovalRecords(approvalRecords);
    }

    /**
     * 批量删除审核
     * 
     * @param recordIds 需要删除的审核主键
     * @return 结果
     */
    @Override
    public int deleteApprovalRecordsByRecordIds(Long[] recordIds)
    {
        return approvalRecordsMapper.deleteApprovalRecordsByRecordIds(recordIds);
    }

    /**
     * 删除审核信息
     * 
     * @param recordId 审核主键
     * @return 结果
     */
    @Override
    public int deleteApprovalRecordsByRecordId(Long recordId)
    {
        return approvalRecordsMapper.deleteApprovalRecordsByRecordId(recordId);
    }
}
